package com.fesine.learn.design.pattern.structural.decorator.v2;

/**
 * @description: 使用香肠装饰煎饼
 * @author: fesine
 * @createTime:2019/4/28
 * @update:修改内容
 * @author: fesine
 * @updateTime:2019/4/28
 */
public class SausageDecorator extends ABattercakeDecorator {
    @Override
    protected String getDesc() {
        return super.getDesc() + " 加一根香肠";
    }

    @Override
    protected int cost() {
        return super.cost() + 2;
    }

    @Override
    protected void doSomething() {
        System.out.println("加了一根香肠");
    }

    public SausageDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }
}
